package Vistas;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.JToggleButton;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaPrincipal extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JMenu menuSalir;
	private JMenuItem menuTabla;
	private JMenuItem menuCronograma;
	private JMenuItem menuCompetencia;
	private JMenuItem menuJuez;
	private JMenuItem menuEquipo;
	private JMenu jMenuConsultar;
	private JMenu jMenuGenerar;
	private JMenu jMenu1;
	private JMenuBar jMenu;

	public JPanel getjPanel1() {
		return jPanel1;
	}

	public JMenu getMenuSalir() {
		return menuSalir;
	}

	public JMenuItem getMenuTabla() {
		return menuTabla;
	}

	public JMenuItem getMenuCronograma() {
		return menuCronograma;
	}

	public JMenuItem getMenuCompetencia() {
		return menuCompetencia;
	}

	public JMenuItem getMenuJuez() {
		return menuJuez;
	}

	public JMenuItem getMenuEquipo() {
		return menuEquipo;
	}

	public JMenu getjMenuConsultar() {
		return jMenuConsultar;
	}

	public JMenu getjMenuGenerar() {
		return jMenuGenerar;
	}

	public JMenu getjMenu1() {
		return jMenu1;
	}

	public JMenuBar getjMenu() {
		return jMenu;
	}

	/**
	* Auto-generated main method to display this JFrame
	*/
	/*public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaPrincipal inst = new VentanaPrincipal();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}*/
	
	public VentanaPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jMenu = new JMenuBar();
				setJMenuBar(jMenu);
				{
					jMenu1 = new JMenu();
					jMenu.add(jMenu1);
					jMenu1.setText("Registrar");
					{
						menuEquipo = new JMenuItem();
						jMenu1.add(menuEquipo);
						menuEquipo.setText("Equipo");
					}
					{
						menuJuez = new JMenuItem();
						jMenu1.add(menuJuez);
						menuJuez.setText("Juez");
					}
				}
				{
					jMenuGenerar = new JMenu();
					jMenu.add(jMenuGenerar);
					jMenuGenerar.setText("Generar");
					{
						menuCompetencia = new JMenuItem();
						jMenuGenerar.add(menuCompetencia);
						menuCompetencia.setText("Competencia");
					}
				}
				{
					jMenuConsultar = new JMenu();
					jMenu.add(jMenuConsultar);
					jMenuConsultar.setText("Consultar");
					{
						menuCronograma = new JMenuItem();
						jMenuConsultar.add(menuCronograma);
						menuCronograma.setText("Cronograma de Competencias");
					}
					{
						menuTabla = new JMenuItem();
						jMenuConsultar.add(menuTabla);
						menuTabla.setText("Tabla de posiciones");
					}
				}
				{
					menuSalir = new JMenu();
					jMenu.add(menuSalir);
					menuSalir.setText("Salir");
				}
			}
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, "Center");
				jPanel1.setBounds(0, 1, 392, 236);
				jPanel1.setLayout(null);
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void agregarListener(ActionListener accion){
		this.menuEquipo.addActionListener(accion);
		this.menuJuez.addActionListener(accion);
		this.jMenuGenerar.addActionListener(accion);
		this.menuCronograma.addActionListener(accion);
		this.menuTabla.addActionListener(accion);
	}
}
